package org.dreamwork.tools.code.analyzer.core.service;

import java.io.Serializable;
import java.util.List;

public interface IBaseService {
    void save (Object bean);
    void update (Object bean);

    <T> List<T> all (Class<T> type);

    <T> T getByPrimary (Class<T> type, Serializable pk);
}